package com.neulogistics.contrib.procuredcenter.api.application.command;

import com.blackto.lib.mediat.unicast.IRequest;
import com.neulogistics.infrastructure.common.serviceresult.BaseResponse;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class UpdateGoodsSetCommand implements IRequest<BaseResponse>, Serializable{
    private static final long serialVersionUID = 1L;

    /**
     * 二级分类id
     */
    @NotNull
    @Positive
    public Integer setId;

    /**
     * 二级分类名
     */
    @NotBlank
    @Size(max = 10, message = "分类名不能超过10")
    public String setName;

    /**
     * 二级分类描述
     */
    @NotBlank
    @Size(max = 200, message = "分类描述不能超过200")
    public String setDescription;
}
